MKTIME

Section: C Library Functions (3)
Updated: 19 March 1986
Index Return to Main Contents
 

NAME

tm_to_time - convert broken-down time into time_t  

SYNOPSIS

#include <sys/types.h>
#include <sys/time.h>

time_t tm_to_time (tp);
struct tm *tp;
 

DESCRIPTION

Tm_to_time converts a broken-down time pointed to by tp (such as returned by localtime) into a time_t (that is, a number of seconds since 00:00:00 GMT, Jan 1, 1970). Thus, if tm_to_time is called with a broken-down time returned by a call to localtime with some time_t argument, the value obtained by tm_to_time is identical to the original time_t.  

AUTHOR

Oliver Laumann  

SEE ALSO

gettimeofday(2) or time(2), ctime(3).


 

Index

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 05:44:15 GMT, November 13, 2022